package com.fy.controller;


import com.fy.entity.Appid;
import com.fy.entity.Result;
import com.fy.entity.Type;
import com.fy.service.IAppidService;
import com.fy.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 晓岩
 * @since 2022-06-14
 */
@RestController
@RequestMapping("/type")
public class TypeController {
    @Autowired
    ITypeService typeService;
    @RequestMapping("list")
    public Result list(){
        List<Type> list = typeService.list();
        System.out.println("type"+list.toString());
        return new Result(200,"",list);
    }
}
